/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.openbrew.openbrewrf;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author chapmand
 */
@Entity
@Table(name = "Dept")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Dept.findAll", query = "SELECT d FROM Dept d"),
    @NamedQuery(name = "Dept.findByDeptID", query = "SELECT d FROM Dept d WHERE d.deptID = :deptID"),
    @NamedQuery(name = "Dept.findByDeptMgr", query = "SELECT d FROM Dept d WHERE d.deptMgr = :deptMgr"),
    @NamedQuery(name = "Dept.findByDeptDesc", query = "SELECT d FROM Dept d WHERE d.deptDesc = :deptDesc"),
    @NamedQuery(name = "Dept.findByDeptEmps", query = "SELECT d FROM Dept d WHERE d.deptEmps = :deptEmps"),
    @NamedQuery(name = "Dept.findByMonday", query = "SELECT d FROM Dept d WHERE d.monday = :monday"),
    @NamedQuery(name = "Dept.findByTuesday", query = "SELECT d FROM Dept d WHERE d.tuesday = :tuesday"),
    @NamedQuery(name = "Dept.findByWednesday", query = "SELECT d FROM Dept d WHERE d.wednesday = :wednesday"),
    @NamedQuery(name = "Dept.findByThursday", query = "SELECT d FROM Dept d WHERE d.thursday = :thursday"),
    @NamedQuery(name = "Dept.findByFriday", query = "SELECT d FROM Dept d WHERE d.friday = :friday"),
    @NamedQuery(name = "Dept.findBySaturday", query = "SELECT d FROM Dept d WHERE d.saturday = :saturday"),
    @NamedQuery(name = "Dept.findBySunday", query = "SELECT d FROM Dept d WHERE d.sunday = :sunday"),
    @NamedQuery(name = "Dept.findByStartTime", query = "SELECT d FROM Dept d WHERE d.startTime = :startTime"),
    @NamedQuery(name = "Dept.findByStopTime", query = "SELECT d FROM Dept d WHERE d.stopTime = :stopTime")})
public class Dept implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "DeptID")
    private Integer deptID;
    @Basic(optional = false)
    @NotNull
    @Column(name = "DeptMgr")
    private int deptMgr;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 150)
    @Column(name = "DeptDesc")
    private String deptDesc;
    @Basic(optional = false)
    @NotNull
    @Size(min = 0, max = 250)
    @Column(name = "DeptEmps")
    private String deptEmps;
    @Basic(optional = false)
    @NotNull
    @Column(name = "Monday")
    private boolean monday;
    @Basic(optional = false)
    @NotNull
    @Column(name = "Tuesday")
    private boolean tuesday;
    @Basic(optional = false)
    @NotNull
    @Column(name = "Wednesday")
    private boolean wednesday;
    @Basic(optional = false)
    @NotNull
    @Column(name = "Thursday")
    private boolean thursday;
    @Basic(optional = false)
    @NotNull
    @Column(name = "Friday")
    private boolean friday;
    @Basic(optional = false)
    @NotNull
    @Column(name = "Saturday")
    private boolean saturday;
    @Basic(optional = false)
    @NotNull
    @Column(name = "Sunday")
    private boolean sunday;
    @Basic(optional = false)
    @NotNull
    @Column(name = "StartTime")
    @Temporal(TemporalType.TIME)
    private Date startTime;
    @Basic(optional = false)
    @NotNull
    @Column(name = "StopTime")
    @Temporal(TemporalType.TIME)
    private Date stopTime;

    public Dept() {
    }

    public Dept(Integer deptID) {
        this.deptID = deptID;
    }

    public Dept(Integer deptID, int deptMgr, String deptDesc, String deptEmps, boolean monday, boolean tuesday, boolean wednesday, boolean thursday, boolean friday, boolean saturday, boolean sunday, Date startTime, Date stopTime) {
        this.deptID = deptID;
        this.deptMgr = deptMgr;
        this.deptDesc = deptDesc;
        this.deptEmps = deptEmps;
        this.monday = monday;
        this.tuesday = tuesday;
        this.wednesday = wednesday;
        this.thursday = thursday;
        this.friday = friday;
        this.saturday = saturday;
        this.sunday = sunday;
        this.startTime = startTime;
        this.stopTime = stopTime;
    }

    public Integer getDeptID() {
        return deptID;
    }

    public void setDeptID(Integer deptID) {
        this.deptID = deptID;
    }

    public int getDeptMgr() {
        return deptMgr;
    }

    public void setDeptMgr(int deptMgr) {
        this.deptMgr = deptMgr;
    }

    public String getDeptDesc() {
        return deptDesc;
    }

    public void setDeptDesc(String deptDesc) {
        this.deptDesc = deptDesc;
    }

    public String getDeptEmps() {
        return deptEmps;
    }

    public void setDeptEmps(String deptEmps) {
        this.deptEmps = deptEmps;
    }

    public boolean getMonday() {
        return monday;
    }

    public void setMonday(boolean monday) {
        this.monday = monday;
    }

    public boolean getTuesday() {
        return tuesday;
    }

    public void setTuesday(boolean tuesday) {
        this.tuesday = tuesday;
    }

    public boolean getWednesday() {
        return wednesday;
    }

    public void setWednesday(boolean wednesday) {
        this.wednesday = wednesday;
    }

    public boolean getThursday() {
        return thursday;
    }

    public void setThursday(boolean thursday) {
        this.thursday = thursday;
    }

    public boolean getFriday() {
        return friday;
    }

    public void setFriday(boolean friday) {
        this.friday = friday;
    }

    public boolean getSaturday() {
        return saturday;
    }

    public void setSaturday(boolean saturday) {
        this.saturday = saturday;
    }

    public boolean getSunday() {
        return sunday;
    }

    public void setSunday(boolean sunday) {
        this.sunday = sunday;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStopTime() {
        return stopTime;
    }

    public void setStopTime(Date stopTime) {
        this.stopTime = stopTime;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (deptID != null ? deptID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Dept)) {
            return false;
        }
        Dept other = (Dept) object;
        if ((this.deptID == null && other.deptID != null) || (this.deptID != null && !this.deptID.equals(other.deptID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.openbrew.openbrewrf.Dept[ deptID=" + deptID + " ]";
    }
    
}
